package com.prik.factory.method.store;

import com.prik.factory.method.pizza.Pizza;
import com.prik.factory.method.pizza.SHCheesePizza;
import com.prik.factory.method.pizza.SHVeggiePizza;

/**
 * 上海加盟店
 **/
public class SHPizzaStore extends PizzaStore {
    @Override
    protected Pizza createPizza(String type) {
        if (type.equals("cheese")) {
            return new SHCheesePizza();
        } else if (type.equals("veggie")) {
            return new SHVeggiePizza();
        }
        return null;
    }
}